package com.sxsy.datasource.controller;

import com.sxsy.datasource.biz.SwjcData;
import com.sxsy.datasource.util.SwjcFileUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Date;

@EnableScheduling

@Controller
public class SwjcFileController {
    @Autowired
    private SwjcFileUtil swjcFileUtil;

    //@Scheduled(cron="0 0/1 * * * ?")//每隔一分钟执行一次 》
   // @Scheduled(cron="0/4 * * * * ?") // 每隔5秒钟执行一次任务
    public void Dataupdate() throws IOException {
        //swjcFileUtil.DevfileAnalysis();
    }




}
